home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / Gestalt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-01  |  39.1 KB  |  1,261 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Gestalt.h
  3.  
  4.      Contains:    Gestalt Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. */
  18. #ifndef __GESTALT__
  19. #define __GESTALT__
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. #ifndef __MIXEDMODE__
  25. #include <MixedMode.h>
  26. #endif
  27.  
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31.  
  32. #if PRAGMA_IMPORT_SUPPORTED
  33. #pragma import on
  34. #endif
  35.  
  36. #if PRAGMA_ALIGN_SUPPORTED
  37. #pragma options align=mac68k
  38. #endif
  39.  
  40. #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
  41. typedef pascal OSErr (*SelectorFunctionProcPtr)(OSType selector, long *response);
  42.  
  43. #if GENERATINGCFM
  44. typedef UniversalProcPtr SelectorFunctionUPP;
  45. #else
  46. typedef SelectorFunctionProcPtr SelectorFunctionUPP;
  47. #endif
  48.  
  49. enum {
  50.     uppSelectorFunctionProcInfo = kPascalStackBased
  51.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  52.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(OSType)))
  53.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long *)))
  54. };
  55.  
  56. #if GENERATINGCFM
  57. #define NewSelectorFunctionProc(userRoutine)        \
  58.         (SelectorFunctionUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppSelectorFunctionProcInfo, GetCurrentArchitecture())
  59. #else
  60. #define NewSelectorFunctionProc(userRoutine)        \
  61.         ((SelectorFunctionUPP) (userRoutine))
  62. #endif
  63.  
  64. #if GENERATINGCFM
  65. #define CallSelectorFunctionProc(userRoutine, selector, response)        \
  66.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppSelectorFunctionProcInfo, (selector), (response))
  67. #else
  68. #define CallSelectorFunctionProc(userRoutine, selector, response)        \
  69.         (*(userRoutine))((selector), (response))
  70. #endif
  71. #endif
  72. #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
  73.  
  74. #if GENERATING68K && !GENERATINGCFM
  75. #pragma parameter __D0 Gestalt(__D0, __A1)
  76. #endif
  77. extern pascal OSErr Gestalt(OSType selector, long *response)
  78.  TWOWORDINLINE(0xA1AD, 0x2288);
  79.  
  80. #endif
  81. #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
  82.  
  83. #if GENERATING68K && !GENERATINGCFM
  84. #pragma parameter __D0 ReplaceGestalt(__D0, __A0, __A1)
  85. #endif
  86. extern pascal OSErr ReplaceGestalt(OSType selector, SelectorFunctionUPP gestaltFunction, SelectorFunctionUPP *oldGestaltFunction)
  87.  FOURWORDINLINE(0x2F09, 0xA5AD, 0x225F, 0x2288);
  88.  
  89. #endif
  90. #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
  91.  
  92. #if GENERATING68K && !GENERATINGCFM
  93. #pragma parameter __D0 NewGestalt(__D0, __A0)
  94. #endif
  95. extern pascal OSErr NewGestalt(OSType selector, SelectorFunctionUPP gestaltFunction)
  96.  ONEWORDINLINE(0xA3AD);
  97.  
  98. #endif
  99. #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
  100. /*    These functions are built into System 7.5, but not on earlier systems*/
  101. extern pascal OSErr NewGestaltValue(OSType selector, long newValue)
  102.  THREEWORDINLINE(0x303C, 0x0401, 0xABF1);
  103.  
  104. extern pascal OSErr ReplaceGestaltValue(OSType selector, long replacementValue)
  105.  THREEWORDINLINE(0x303C, 0x0402, 0xABF1);
  106.  
  107. extern pascal OSErr SetGestaltValue(OSType selector, long newValue)
  108.  THREEWORDINLINE(0x303C, 0x0404, 0xABF1);
  109.  
  110. #endif
  111. #if FOR_SYSTEM8_COOPERATIVE
  112. typedef struct OpaqueGestaltIteratorRef* GestaltIteratorRef;
  113. #endif
  114. #if FOR_SYSTEM8_COOPERATIVE
  115. extern OSStatus CreateGestaltIterator(GestaltIteratorRef *theIterator);
  116.  
  117. extern OSStatus DisposeGestaltIterator(GestaltIteratorRef theIterator);
  118.  
  119. extern OSStatus GetNextGestaltSelectors(GestaltIteratorRef theIterator, UInt32 numberToGet, OSType *gestaltSelectors, UInt32 *numberGotten);
  120.  
  121. extern OSErr DeleteGestalt(OSType selector);
  122.  
  123. #endif
  124. #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
  125. extern pascal OSErr DeleteGestaltValue(OSType selector)
  126.  THREEWORDINLINE(0x303C, 0x0203, 0xABF1);
  127.  
  128. #endif
  129. #if !OLDROUTINELOCATIONS
  130. /*    Environs Equates*/
  131.  
  132. enum {
  133.     curSysEnvVers                = 2                                /*    Updated to equal latest SysEnvirons version*/
  134. };
  135.  
  136. struct SysEnvRec {
  137.     short                             environsVersion;
  138.     short                             machineType;
  139.     short                             systemVersion;
  140.     short                             processor;
  141.     Boolean                         hasFPU;
  142.     Boolean                         hasColorQD;
  143.     short                             keyBoardType;
  144.     short                             atDrvrVersNum;
  145.     short                             sysVRefNum;
  146. };
  147. typedef struct SysEnvRec SysEnvRec;
  148.  
  149. #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
  150.  
  151. #if GENERATING68K && !GENERATINGCFM
  152. #pragma parameter __D0 SysEnvirons(__D0, __A0)
  153. #endif
  154. extern pascal OSErr SysEnvirons(short versionRequested, SysEnvRec *theWorld)
  155.  ONEWORDINLINE(0xA090);
  156.  
  157. #endif
  158. #endif
  159. /* Environment Selectors */
  160.  
  161. enum {
  162.     gestaltAddressingModeAttr    = 'addr',                        /* addressing mode attributes */
  163.     gestalt32BitAddressing        = 0,                            /* using 32-bit addressing mode */
  164.     gestalt32BitSysZone            = 1,                            /* 32-bit compatible system zone */
  165.     gestalt32BitCapable            = 2                                /* Machine is 32-bit capable */
  166. };
  167.  
  168.  
  169. enum {
  170.     gestaltAliasMgrAttr            = 'alis',                        /* Alias Mgr Attributes */
  171.     gestaltAliasMgrPresent        = 0,                            /* True if the Alias Mgr is present */
  172.     gestaltAliasMgrSupportsRemoteAppletalk = 1,                    /* True if the Alias Mgr knows about Remote Appletalk */
  173.     gestaltAliasMgrSupportsAOCEKeychain = 2                        /* True if the Alias Mgr knows about the AOCE Keychain */
  174. };
  175.  
  176.  
  177. enum {
  178.     gestaltATAAttr                = 'ata ',                        /* ATA is the driver to support IDE hard disks */
  179.     gestaltATAPresent            = 0                                /* if set, ATA Manager is present */
  180. };
  181.  
  182.  
  183. enum {
  184.     gestaltAppleTalkVersion        = 'atlk'                        /* appletalk version */
  185. };
  186.  
  187. /*
  188.     FORMAT OF gestaltATalkVersion RESPONSE
  189.     --------------------------------------
  190.     The version is stored in the high three bytes of the response value.  Let us number
  191.     the bytes in the response value from 0 to 3, where 0 is the least-significant byte.
  192.     
  193.         Byte#:       3 2 1 0
  194.         Value:    0xMMNNRR00
  195.         
  196.     Byte 3 (MM) contains the major revision number, byte 2 (NN) contains the minor
  197.     revision number, and byte 1 (RR) contains a constant that represents the release
  198.     stage.  Byte 0 always contains 0x00.  The constants for the release stages are:
  199.     
  200.         development = 0x20
  201.         alpha        = 0x40
  202.         beta        = 0x60
  203.         final        = 0x80
  204.         release        = 0x80
  205.     
  206.     For example, if you call Gestalt with the 'atkv' selector when AppleTalk version 57
  207.     is loaded, you receive the long integer response value 0x39008000.
  208. */
  209.  
  210. enum {
  211.     gestaltATalkVersion            = 'atkv'                        /* Detailed AppleTalk version; see comment above for format */
  212. };
  213.  
  214.  
  215. enum {
  216.     gestaltAUXVersion            = 'a/ux'                        /* a/ux version, if present */
  217. };
  218.  
  219.  
  220. enum {
  221.     gestaltBusClkSpeed            = 'bclk'                        /* main I/O bus clock speed in hertz */
  222. };
  223.  
  224.  
  225. enum {
  226.     gestaltCloseViewAttr        = 'BSDa',                        /* CloseView attributes */
  227.     gestaltCloseViewEnabled        = 0,                            /* Closeview enabled (dynamic bit - returns current state) */
  228.     gestaltCloseViewDisplayMgrFriendly = 1                        /* Closeview compatible with Display Manager (FUTURE) */
  229. };
  230.  
  231.  
  232. enum {
  233.     gestaltCFMAttr                = 'cfrg',                        /* returns information about the Code Fragment Manager */
  234.     gestaltCFMPresent            = 0                                /* true if the Code Fragment Manager is present */
  235. };
  236.  
  237.  
  238. enum {
  239.     gestaltCollectionMgrVersion    = 'cltn'                        /* Collection Manager version */
  240. };
  241.  
  242.  
  243. enum {
  244.     gestaltColorMatchingAttr    = 'cmta',                        /* ColorSync attributes */
  245.     gestaltHighLevelMatching    = 0,
  246.     gestaltColorMatchingLibLoaded = 1
  247. };
  248.  
  249.  
  250. enum {
  251.     gestaltColorMatchingVersion    = 'cmtc',
  252.     gestaltColorSync10            = 0x0100,                        /* 0x0100 & 0x0110 _Gestalt versions for 1.0-1.0.3 product */
  253.     gestaltColorSync11            = 0x0110,                        /*   0x0100 == low-level matching only */
  254.     gestaltColorSync104            = 0x0104,                        /* Real version, by popular demand */
  255.     gestaltColorSync105            = 0x0105,
  256.     gestaltColorSync20            = 0x0200                        /* ColorSync 2.0 */
  257. };
  258.  
  259.  
  260. enum {
  261.     gestaltConnMgrAttr            = 'conn',                        /* connection mgr attributes    */
  262.     gestaltConnMgrPresent        = 0,
  263.     gestaltConnMgrCMSearchFix    = 1,                            /* Fix to CMAddSearch?     */
  264.     gestaltConnMgrErrorString    = 2,                            /* has CMGetErrorString() */
  265.     gestaltConnMgrMultiAsyncIO    = 3                                /* CMNewIOPB, CMDisposeIOPB, CMPBRead, CMPBWrite, CMPBIOKill */
  266. };
  267.  
  268.  
  269. enum {
  270.     gestaltComponentMgr            = 'cpnt'                        /* Component Mgr version */
  271. };
  272.  
  273.  
  274. enum {
  275.     gestaltColorPickerVersion    = 'cpkr',                        /* returns version of ColorPicker */
  276.     gestaltColorPicker            = 'cpkr'                        /* gestaltColorPicker is old name for gestaltColorPickerVersion */
  277. };
  278.  
  279. /*
  280.     The gestaltNativeCPUtype ('cput') selector can be used to determine the
  281.     native CPU type for all Macs running System 7.5 or later.
  282.     
  283.     The 'cput' selector is not available when running System 7.0 (or earlier)
  284.     on most 68K machines.  If 'cput' is not available, then the 'proc' selector
  285.     should be used to determine the processor type.
  286.     
  287.     An application should always try the 'cput' selector first.  This is because,
  288.     on PowerPC machines, the 'proc' selector will reflect the CPU type of the
  289.     emulator's "virtual processor" rather than the native CPU type.
  290.     
  291.     The values specified below are accurate.  Prior versions of the Gestalt
  292.     interface file contained values that were off by one.
  293.     
  294.     The Quadra 840AV and the Quadra 660AV contain a bug in the ROM code that
  295.     causes the 'cput' selector to respond with the value 5.  This behavior
  296.     occurs only when running System 7.1.  System 7.5 fixes the bug by replacing
  297.     the faulty 'cput' selector function with the correct one.
  298. */
  299.  
  300. enum {
  301.     gestaltNativeCPUtype        = 'cput',                        /* Native CPU type                                       */
  302.     gestaltCPU68000                = 0,                            /* Various 68k CPUs...     */
  303.     gestaltCPU68010                = 1,
  304.     gestaltCPU68020                = 2,
  305.     gestaltCPU68030                = 3,
  306.     gestaltCPU68040                = 4,
  307.     gestaltCPU601                = 0x0101,                        /* IBM 601                                                 */
  308.     gestaltCPU603                = 0x0103,
  309.     gestaltCPU604                = 0x0104,
  310.     gestaltCPU603e                = 0x0106
  311. };
  312.  
  313.  
  314. enum {
  315.     gestaltCRMAttr                = 'crm ',                        /* comm resource mgr attributes */
  316.     gestaltCRMPresent            = 0,
  317.     gestaltCRMPersistentFix        = 1,                            /* fix for persistent tools */
  318.     gestaltCRMToolRsrcCalls        = 2                                /* has CRMGetToolResource/ReleaseToolResource */
  319. };
  320.  
  321.  
  322. enum {
  323.     gestaltControlStripVersion    = 'csvr'                        /* Control Strip version (was 'sdvr') */
  324. };
  325.  
  326.  
  327. enum {
  328.     gestaltCTBVersion            = 'ctbv'                        /* CommToolbox version */
  329. };
  330.  
  331.  
  332. enum {
  333.     gestaltDBAccessMgrAttr        = 'dbac',                        /* Database Access Mgr attributes */
  334.     gestaltDBAccessMgrPresent    = 0                                /* True if Database Access Mgr present */
  335. };
  336.  
  337.  
  338. enum {
  339.     gestaltDictionaryMgrAttr    = 'dict',                        /* Dictionary Manager attributes */
  340.     gestaltDictionaryMgrPresent    = 0                                /* Dictionary Manager attributes */
  341. };
  342.  
  343.  
  344. enum {
  345.     gestaltDITLExtAttr            = 'ditl',                        /* AppenDITL, etc. calls from CTB */
  346.     gestaltDITLExtPresent        = 0                                /* True if calls are present */
  347. };
  348.  
  349.  
  350. enum {
  351.     gestaltDisplayMgrAttr        = 'dply',                        /* Display Manager attributes */
  352.     gestaltDisplayMgrPresent    = 0,                            /* True if Display Mgr is present */
  353.     gestaltDisplayMgrCanSwitchMirrored = 2,                        /* True if Display Mgr can switch modes on mirrored displays */
  354.     gestaltDisplayMgrSetDepthNotifies = 3                        /* True SetDepth generates displays mgr notification */
  355. };
  356.  
  357.  
  358. enum {
  359.     gestaltDisplayMgrVers        = 'dplv'                        /* Display Manager version */
  360. };
  361.  
  362.  
  363. enum {
  364.     gestaltDragMgrAttr            = 'drag',                        /* Drag Manager attributes */
  365.     gestaltDragMgrPresent        = 0,                            /* Drag Manager is present */
  366.     gestaltDragMgrFloatingWind    = 1,                            /* Drag Manager supports floating windows */
  367.     gestaltPPCDragLibPresent    = 2,                            /* Drag Manager PPC DragLib is present */
  368.     gestaltDragMgrHasImageSupport = 3                            /* Drag Manager allows SetDragImage call */
  369. };
  370.  
  371.  
  372. enum {
  373.     gestaltEasyAccessAttr        = 'easy',                        /* Easy Access attributes */
  374.     gestaltEasyAccessOff        = 0,                            /* if Easy Access present, but off (no icon) */
  375.     gestaltEasyAccessOn            = 1,                            /* if Easy Access "On" */
  376.     gestaltEasyAccessSticky        = 2,                            /* if Easy Access "Sticky" */
  377.     gestaltEasyAccessLocked        = 3                                /* if Easy Access "Locked" */
  378. };
  379.  
  380.  
  381. enum {
  382.     gestaltEditionMgrAttr        = 'edtn',                        /* Edition Mgr attributes */
  383.     gestaltEditionMgrPresent    = 0,                            /* True if Edition Mgr present */
  384.     gestaltEditionMgrTranslationAware = 1                        /* True if edition manager is translation manager aware */
  385. };
  386.  
  387.  
  388. enum {
  389.     gestaltAppleEventsAttr        = 'evnt',                        /* Apple Events attributes */
  390.     gestaltAppleEventsPresent    = 0,                            /* True if Apple Events present */
  391.     gestaltScriptingSupport        = 1,
  392.     gestaltOSLInSystem            = 2                                /* OSL is in system so don’t use the one linked in to app */
  393. };
  394.  
  395.  
  396. enum {
  397.     gestaltFinderAttr            = 'fndr',                        /* Finder attributes */
  398.     gestaltFinderDropEvent        = 0,                            /* Finder recognizes drop event */
  399.     gestaltFinderMagicPlacement    = 1,                            /* Finder supports magic icon placement */
  400.     gestaltFinderCallsAEProcess    = 2,                            /* Finder calls AEProcessAppleEvent */
  401.     gestaltOSLCompliantFinder    = 3,                            /* Finder is scriptable and recordable */
  402.     gestaltFinderSupports4GBVolumes = 4,                        /* Finder correctly handles 4GB volumes */
  403.     gestaltFinderHasClippings    = 6                                /* Finder supports Drag Manager clipping files */
  404. };
  405.  
  406.  
  407. enum {
  408.     gestaltFindFolderAttr        = 'fold',                        /* Folder Mgr attributes */
  409.     gestaltFindFolderPresent    = 0                                /* True if Folder Mgr present */
  410. };
  411.  
  412.  
  413. enum {
  414.     gestaltFontMgrAttr            = 'font',                        /* Font Mgr attributes */
  415.     gestaltOutlineFonts            = 0                                /* True if Outline Fonts supported */
  416. };
  417.  
  418.  
  419. enum {
  420.     gestaltFPUType                = 'fpu ',                        /* fpu type */
  421.     gestaltNoFPU                = 0,                            /* no FPU */
  422.     gestalt68881                = 1,                            /* 68881 FPU */
  423.     gestalt68882                = 2,                            /* 68882 FPU */
  424.     gestalt68040FPU                = 3                                /* 68040 built-in FPU */
  425. };
  426.  
  427.  
  428. enum {
  429.     gestaltFSAttr                = 'fs  ',                        /* file system attributes */
  430.     gestaltFullExtFSDispatching    = 0,                            /* has really cool new HFSDispatch dispatcher */
  431.     gestaltHasFSSpecCalls        = 1,                            /* has FSSpec calls */
  432.     gestaltHasFileSystemManager    = 2,                            /* has a file system manager */
  433.     gestaltFSMDoesDynamicLoad    = 3,                            /* file system manager supports dynamic loading */
  434.     gestaltFSSupports4GBVols    = 4,                            /* file system supports 4 gigabyte volumes */
  435.     gestaltFSSupports2TBVols    = 5,                            /* file system supports 2 terabyte volumes */
  436.     gestaltHasExtendedDiskInit    = 6                                /* has extended Disk Initialization calls */
  437. };
  438.  
  439. #if !OLDROUTINELOCATIONS
  440.  
  441. enum {
  442.     gestaltFSMVersion            = 'fsm '
  443. };
  444.  
  445. #endif
  446.  
  447. enum {
  448.     gestaltFXfrMgrAttr            = 'fxfr',                        /* file transfer manager attributes */
  449.     gestaltFXfrMgrPresent        = 0,
  450.     gestaltFXfrMgrMultiFile        = 1,                            /* supports FTSend and FTReceive */
  451.     gestaltFXfrMgrErrorString    = 2,                            /* supports FTGetErrorString */
  452.     gestaltFXfrMgrAsync            = 3                                /*supports FTSendAsync, FTReceiveAsync, FTCompletionAsync*/
  453. };
  454.  
  455.  
  456. enum {
  457.     gestaltGraphicsAttr            = 'gfxa',                        /* Quickdraw GX attributes selector */
  458.     gestaltGraphicsIsDebugging    = 0x00000001,
  459.     gestaltGraphicsIsLoaded        = 0x00000002,
  460.     gestaltGraphicsIsPowerPC    = 0x00000004
  461. };
  462.  
  463.  
  464. enum {
  465.     gestaltGraphicsVersion        = 'grfx',                        /* Quickdraw GX version selector */
  466.     gestaltCurrentGraphicsVersion = 0x00010200                    /* the version described in this set of headers */
  467. };
  468.  
  469.  
  470. enum {
  471.     gestaltHardwareAttr            = 'hdwr',                        /* hardware attributes */
  472.     gestaltHasVIA1                = 0,                            /* VIA1 exists */
  473.     gestaltHasVIA2                = 1,                            /* VIA2 exists */
  474.     gestaltHasASC                = 3,                            /* Apple Sound Chip exists */
  475.     gestaltHasSCC                = 4,                            /* SCC exists */
  476.     gestaltHasSCSI                = 7,                            /* SCSI exists */
  477.     gestaltHasSoftPowerOff        = 19,                            /* Capable of software power off */
  478.     gestaltHasSCSI961            = 21,                            /* 53C96 SCSI controller on internal bus */
  479.     gestaltHasSCSI962            = 22,                            /* 53C96 SCSI controller on external bus */
  480.     gestaltHasUniversalROM        = 24,                            /* Do we have a Universal ROM? */
  481.     gestaltHasEnhancedLtalk        = 30                            /* Do we have Enhanced LocalTalk? */
  482. };
  483.  
  484.  
  485. enum {
  486.     gestaltHelpMgrAttr            = 'help',                        /* Help Mgr Attributes */
  487.     gestaltHelpMgrPresent        = 0,                            /* true if help mgr is present */
  488.     gestaltHelpMgrExtensions    = 1,                            /* true if help mgr extensions are installed */
  489.     gestaltAppleGuideIsDebug    = 30,
  490.     gestaltAppleGuidePresent    = 31                            /* true if AppleGuide is installed */
  491. };
  492.  
  493.  
  494. enum {
  495.     gestaltHardwareVendorCode    = 'hrad',                        /* Returns hardware vendor information */
  496.     gestaltHardwareVendorApple    = 'Appl'                        /* Hardware built by Apple */
  497. };
  498.  
  499.  
  500. enum {
  501.     gestaltCompressionMgr        = 'icmp'                        /* returns version of the Image Compression Manager */
  502. };
  503.  
  504.  
  505. enum {
  506.     gestaltIconUtilitiesAttr    = 'icon',                        /* Icon Utilities attributes  (Note: available in System 7.0, despite gestalt) */
  507.     gestaltIconUtilitiesPresent    = 0                                /* true if icon utilities are present */
  508. };
  509.  
  510. /*
  511.     To obtain information about the connected keyboard(s), one should
  512.     use the ADB Manager API.  See Technical Note OV16 for details.
  513. */
  514.  
  515. enum {
  516.     gestaltKeyboardType            = 'kbd ',                        /* keyboard type */
  517.     gestaltMacKbd                = 1,
  518.     gestaltMacAndPad            = 2,
  519.     gestaltMacPlusKbd            = 3,
  520.     gestaltExtADBKbd            = 4,
  521.     gestaltStdADBKbd            = 5,
  522.     gestaltPrtblADBKbd            = 6,
  523.     gestaltPrtblISOKbd            = 7,
  524.     gestaltStdISOADBKbd            = 8,
  525.     gestaltExtISOADBKbd            = 9,
  526.     gestaltADBKbdII                = 10,
  527.     gestaltADBISOKbdII            = 11,
  528.     gestaltPwrBookADBKbd        = 12,
  529.     gestaltPwrBookISOADBKbd        = 13,
  530.     gestaltAppleAdjustKeypad    = 14,
  531.     gestaltAppleAdjustADBKbd    = 15,
  532.     gestaltAppleAdjustISOKbd    = 16,
  533.     gestaltJapanAdjustADBKbd    = 17,                            /* Japan Adjustable Keyboard */
  534.     gestaltPwrBkExtISOKbd        = 20,                            /* PowerBook Extended International Keyboard with function keys */
  535.     gestaltPwrBkExtJISKbd        = 21,                            /* PowerBook Extended Japanese Keyboard with function keys         */
  536.     gestaltPwrBkExtADBKbd        = 24                            /* PowerBook Extended Domestic Keyboard with function keys         */
  537. };
  538.  
  539.  
  540. enum {
  541.     gestaltLowMemorySize        = 'lmem'                        /* size of low memory area */
  542. };
  543.  
  544.  
  545. enum {
  546.     gestaltLogicalRAMSize        = 'lram'                        /* logical ram size */
  547. };
  548.  
  549. /*
  550.     MACHINE TYPE CONSTANTS NAMING CONVENTION
  551.     
  552.         All future machine type constant names take the following form:
  553.     
  554.             gestalt<lineName><modelNumber>
  555.             
  556.     Line Names
  557.     
  558.         The following table contains the lines currently produced by Apple and the 
  559.         lineName substrings associated with them:
  560.     
  561.             Line                        lineName
  562.             -------------------------    ------------
  563.             Macintosh LC                "MacLC"
  564.             Macintosh Performa            "Performa"
  565.             Macintosh PowerBook            "PowerBook"
  566.             Macintosh PowerBook Duo        "PowerBookDuo"
  567.             Power Macintosh                "PowerMac"
  568.             Apple Workgroup Server        "AWS"
  569.         
  570.         The following table contains lineNames for some discontinued lines:
  571.     
  572.             Line                        lineName
  573.             -------------------------    ------------
  574.             Macintosh Quadra            "MacQuadra" (preferred)
  575.                                         "Quadra" (also used, but not preferred)
  576.             Macintosh Centris            "MacCentris"
  577.     
  578.     Model Numbers
  579.     
  580.         The modelNumber is a string representing the specific model of the machine
  581.         within its particular line.  For example, for the Power Macintosh 8100/80,
  582.         the modelNumber is "8100".
  583.         
  584.         Some Performa & LC model numbers contain variations in the rightmost 1 or 2
  585.         digits to indicate different RAM and Hard Disk configurations.  A single
  586.         machine type is assigned for all variations of a specific model number.  In
  587.         this case, the modelNumber string consists of the constant leftmost part
  588.         of the model number with 0s for the variant digits.  For example, the
  589.         Performa 6115 and Performa 6116 are both return the same machine type
  590.         constant:  gestaltPerforma6100.    
  591.         
  592.         
  593.     OLD NAMING CONVENTIONS
  594.         
  595.     The "Underscore Speed" suffix
  596.         
  597.         In the past, Apple differentiated between machines that had the same model
  598.         number but different speeds.  For example, the Power Macintosh 8100/80 and
  599.         Power Macintosh 8100/100 return different machine type constants.  This is
  600.         why some existing machine type constant names take the form:
  601.     
  602.             gestalt<lineName><modelNumber>_<speed>
  603.     
  604.         e.g.
  605.     
  606.             gestaltPowerMac8100_110
  607.             gestaltPowerMac7100_80
  608.             gestaltPowerMac7100_66
  609.     
  610.         It is no longer necessary to use the "underscore speed" suffix.  Starting with
  611.         the Power Surge machines (Power Macintosh 7200, 7500, 8500 and 9500), speed is
  612.         no longer used to differentiate between machine types.  This is why a Power
  613.         Macintosh 7200/75 and a Power Macintosh 7200/90 return the same machine type
  614.         constant:  gestaltPowerMac7200.
  615.         
  616.     The "Screen Type" suffix
  617.         
  618.         All PowerBook models prior to the PowerBook 190, and all PowerBook Duo models
  619.         before the PowerBook Duo 2300 take the form:
  620.         
  621.             gestalt<lineName><modelNumber><screenType>
  622.         
  623.         Where <screenType> is "c" or the empty string.
  624.         
  625.         e.g.
  626.         
  627.             gestaltPowerBook100
  628.             gestaltPowerBookDuo280
  629.             gestaltPowerBookDuo280c
  630.             gestaltPowerBook180
  631.             gestaltPowerBook180c
  632.         
  633.         Starting with the PowerBook 190 series and the PowerBook Duo 2300 series, machine
  634.         types are no longer differentiated based on screen type.  This is why a PowerBook
  635.         5300cs/100 and a PowerBook 5300c/100 both return the same machine type constant:
  636.         gestaltPowerBook5300.
  637.     
  638.         Macintosh LC 630                gestaltMacLC630
  639.         Macintosh Performa 6200            gestaltPerforma6200
  640.         Macintosh Quadra 700            gestaltQuadra700
  641.         Macintosh PowerBook 5300        gestaltPowerBook5300
  642.         Macintosh PowerBook Duo 2300    gestaltPowerBookDuo2300
  643.         Power Macintosh 8500            gestaltPowerMac8500
  644. */
  645.  
  646. enum {
  647.     gestaltMachineType            = 'mach',                        /* machine type */
  648.     gestaltClassic                = 1,
  649.     gestaltMacXL                = 2,
  650.     gestaltMac512KE                = 3,
  651.     gestaltMacPlus                = 4,
  652.     gestaltMacSE                = 5,
  653.     gestaltMacII                = 6,
  654.     gestaltMacIIx                = 7,
  655.     gestaltMacIIcx                = 8,
  656.     gestaltMacSE030                = 9,
  657.     gestaltPortable                = 10,
  658.     gestaltMacIIci                = 11,
  659.     gestaltMacIIfx                = 13,
  660.     gestaltMacClassic            = 17,
  661.     gestaltMacIIsi                = 18,
  662.     gestaltMacLC                = 19,
  663.     gestaltQuadra900            = 20,
  664.     gestaltPowerBook170            = 21,
  665.     gestaltQuadra700            = 22,
  666.     gestaltClassicII            = 23,
  667.     gestaltPowerBook100            = 24,
  668.     gestaltPowerBook140            = 25,
  669.     gestaltQuadra950            = 26,
  670.     gestaltMacLCIII                = 27,
  671.     gestaltPerforma450            = gestaltMacLCIII,
  672.     gestaltPowerBookDuo210        = 29,
  673.     gestaltMacCentris650        = 30,
  674.     gestaltPowerBookDuo230        = 32,
  675.     gestaltPowerBook180            = 33,
  676.     gestaltPowerBook160            = 34,
  677.     gestaltMacQuadra800            = 35,
  678.     gestaltMacQuadra650            = 36,
  679.     gestaltMacLCII                = 37,
  680.     gestaltPowerBookDuo250        = 38,
  681.     gestaltAWS9150_80            = 39,
  682.     gestaltPowerMac8100_110        = 40,
  683.     gestaltAWS8150_110            = gestaltPowerMac8100_110,
  684.     gestaltPowerMac5200            = 41,
  685.     gestaltPowerMac6200            = 42,
  686.     gestaltMacIIvi                = 44,
  687.     gestaltMacIIvm                = 45,
  688.     gestaltPerforma600            = gestaltMacIIvm,
  689.     gestaltPowerMac7100_80        = 47,
  690.     gestaltMacIIvx                = 48,
  691.     gestaltMacColorClassic        = 49,
  692.     gestaltPerforma250            = gestaltMacColorClassic,
  693.     gestaltPowerBook165c        = 50,
  694.     gestaltMacCentris610        = 52,
  695.     gestaltMacQuadra610            = 53,
  696.     gestaltPowerBook145            = 54,
  697.     gestaltPowerMac8100_100        = 55,
  698.     gestaltMacLC520                = 56,
  699.     gestaltAWS9150_120            = 57,
  700.     gestaltMacCentris660AV        = 60,
  701.     gestaltPerforma46x            = 62,
  702.     gestaltPowerMac8100_80        = 65,
  703.     gestaltAWS8150_80            = gestaltPowerMac8100_80,
  704.     gestaltPowerMac9500            = 67,
  705.     gestaltPowerMac7500            = 68,
  706.     gestaltPowerMac8500            = 69,
  707.     gestaltPowerBook180c        = 71,
  708.     gestaltPowerBook520            = 72,
  709.     gestaltPowerBook520c        = gestaltPowerBook520,
  710.     gestaltPowerBook540            = gestaltPowerBook520,
  711.     gestaltPowerBook540c        = gestaltPowerBook520,
  712.     gestaltPowerMac6100_60        = 75,
  713.     gestaltAWS6150_60            = gestaltPowerMac6100_60,
  714.     gestaltPowerBookDuo270c        = 77,
  715.     gestaltMacQuadra840AV        = 78,
  716.     gestaltPerforma550            = 80,
  717.     gestaltPowerBook165            = 84,
  718.     gestaltPowerBook190            = 85,
  719.     gestaltMacTV                = 88,
  720.     gestaltMacLC475                = 89,
  721.     gestaltPerforma47x            = gestaltMacLC475,
  722.     gestaltMacLC575                = 92,
  723.     gestaltMacQuadra605            = 94,
  724.     gestaltQuadra630            = 98,
  725.     gestaltPowerMac6100_66        = 100,
  726.     gestaltAWS6150_66            = gestaltPowerMac6100_66,
  727.     gestaltPowerBookDuo280        = 102,
  728.     gestaltPowerBookDuo280c        = 103,
  729.     gestaltPowerMac7200            = 108,
  730.     gestaltPowerMac7100_66        = 112,                            /* Power Macintosh 7100/66 */
  731.     gestaltPowerBook150            = 115,
  732.     gestaltPowerBookDuo2300        = 124,
  733.     gestaltPowerBook500PPCUpgrade = 126,
  734.     gestaltPowerBook5300        = 128
  735. };
  736.  
  737.  
  738. enum {
  739.     kMachineNameStrID            = -16395
  740. };
  741.  
  742.  
  743. enum {
  744.     gestaltMachineIcon            = 'micn'                        /* machine icon */
  745. };
  746.  
  747.  
  748. enum {
  749.     gestaltMiscAttr                = 'misc',                        /* miscellaneous attributes */
  750.     gestaltScrollingThrottle    = 0,                            /* true if scrolling throttle on */
  751.     gestaltSquareMenuBar        = 2                                /* true if menu bar is square */
  752. };
  753.  
  754. /*
  755.     The name gestaltMixedModeVersion for the 'mixd' selector is semantically incorrect.
  756.     The same selector has been renamed gestaltMixedModeAttr to properly reflect the
  757.     Inside Mac: PowerPC System Software documentation.  The gestaltMixedModeVersion
  758.     symbol has been preserved only for backwards compatibility.
  759.  
  760.     Developers are forewarned that gestaltMixedModeVersion has a limited lifespan and
  761.     will be removed in a future release of the Interfaces.
  762.  
  763.     For the first version of Mixed Mode, both meanings of the 'mixd' selector are
  764.     functionally identical.  They both return 0x00000001.  In subsequent versions
  765.     of Mixed Mode, however, the 'mixd' selector will not respond with an increasing
  766.     version number, but rather, with 32 attribute bits with various meanings.
  767. */
  768.  
  769. enum {
  770.     gestaltMixedModeVersion        = 'mixd'                        /* returns version of Mixed Mode */
  771. };
  772.  
  773.  
  774. enum {
  775.     gestaltMixedModeAttr        = 'mixd',                        /* returns Mixed Mode attributes */
  776.     gestaltMixedModePowerPC        = 0,                            /* true if Mixed Mode supports PowerPC ABI calling conventions */
  777.     gestaltPowerPCAware            = 0,                            /* old name for gestaltMixedModePowerPC */
  778.     gestaltMixedModeCFM68K        = 1,                            /* true if Mixed Mode supports CFM-68K calling conventions */
  779.     gestaltMixedModeCFM68KHasTrap = 2                            /* true if CFM-68K Mixed Mode implements _MixedModeDispatch (versions 1.0.1 and prior did not) */
  780. };
  781.  
  782.  
  783. enum {
  784.     gestaltMMUType                = 'mmu ',                        /* mmu type */
  785.     gestaltNoMMU                = 0,                            /* no MMU */
  786.     gestaltAMU                    = 1,                            /* address management unit */
  787.     gestalt68851                = 2,                            /* 68851 PMMU */
  788.     gestalt68030MMU                = 3,                            /* 68030 built-in MMU */
  789.     gestalt68040MMU                = 4,                            /* 68040 built-in MMU */
  790.     gestaltEMMU1                = 5                                /* Emulated MMU type 1  */
  791. };
  792.  
  793.  
  794. enum {
  795.     gestaltStdNBPAttr            = 'nlup',                        /* standard nbp attributes */
  796.     gestaltStdNBPPresent        = 0,
  797.     gestaltStdNBPSupportsAutoPosition = 1                        /* StandardNBP takes (-1,-1) to mean alert position main screen */
  798. };
  799.  
  800.  
  801. enum {
  802.     gestaltNotificationMgrAttr    = 'nmgr',                        /* notification manager attributes */
  803.     gestaltNotificationPresent    = 0                                /* notification manager exists */
  804. };
  805.  
  806.  
  807. enum {
  808.     gestaltNameRegistryVersion    = 'nreg'                        /* NameRegistryLib version number */
  809. };
  810.  
  811.  
  812. enum {
  813.     gestaltNuBusSlotCount        = 'nubs'                        /* count of logical NuBus slots present */
  814. };
  815.  
  816.  
  817. enum {
  818.     gestaltOpenFirmwareInfo        = 'opfw'                        /* Open Firmware info */
  819. };
  820.  
  821.  
  822. enum {
  823.     gestaltOSAttr                = 'os  ',                        /* o/s attributes */
  824.     gestaltSysZoneGrowable        = 0,                            /* system heap is growable */
  825.     gestaltLaunchCanReturn        = 1,                            /* can return from launch */
  826.     gestaltLaunchFullFileSpec    = 2,                            /* can launch from full file spec */
  827.     gestaltLaunchControl        = 3,                            /* launch control support available */
  828.     gestaltTempMemSupport        = 4,                            /* temp memory support */
  829.     gestaltRealTempMemory        = 5,                            /* temp memory handles are real */
  830.     gestaltTempMemTracked        = 6,                            /* temporary memory handles are tracked */
  831.     gestaltIPCSupport            = 7,                            /* IPC support is present */
  832.     gestaltSysDebuggerSupport    = 8                                /* system debugger support is present */
  833. };
  834.  
  835.  
  836. enum {
  837.     gestaltOSTable                = 'ostt'                        /*  OS trap table base  */
  838. };
  839.  
  840.  
  841. enum {
  842.     gestaltProcClkSpeed            = 'pclk'                        /* processor clock speed in hertz */
  843. };
  844.  
  845.  
  846. enum {
  847.     gestaltPCXAttr                = 'pcxg',                        /* PC Exchange attributes */
  848.     gestaltPCXHas8and16BitFAT    = 0,                            /* PC Exchange supports both 8 and 16 bit FATs */
  849.     gestaltPCXHasProDOS            = 1                                /* PC Exchange supports ProDOS */
  850. };
  851.  
  852.  
  853. enum {
  854.     gestaltLogicalPageSize        = 'pgsz'                        /* logical page size */
  855. };
  856.  
  857.  
  858. enum {
  859.     gestaltPopupAttr            = 'pop!',                        /* popup cdef attributes */
  860.     gestaltPopupPresent            = 0
  861. };
  862.  
  863.  
  864. enum {
  865.     gestaltPowerMgrAttr            = 'powr',                        /* power manager attributes */
  866.     gestaltPMgrExists            = 0,
  867.     gestaltPMgrCPUIdle            = 1,
  868.     gestaltPMgrSCC                = 2,
  869.     gestaltPMgrSound            = 3,
  870.     gestaltPMgrDispatchExists    = 4
  871. };
  872.  
  873. /*
  874.  * PPC will return the combination of following bit fields.
  875.  * e.g. gestaltPPCSupportsRealTime +gestaltPPCSupportsIncoming + gestaltPPCSupportsOutGoing
  876.  * indicates PPC is cuurently is only supports real time delivery
  877.  * and both incoming and outgoing network sessions are allowed.
  878.  * By default local real time delivery is supported as long as PPCInit has been called.
  879. */
  880.  
  881. enum {
  882.     gestaltPPCToolboxAttr        = 'ppc ',                        /* PPC toolbox attributes */
  883.     gestaltPPCToolboxPresent    = 0x0000,                        /* PPC Toolbox is present  Requires PPCInit to be called */
  884.     gestaltPPCSupportsRealTime    = 0x1000,                        /* PPC Supports real-time delivery */
  885.     gestaltPPCSupportsIncoming    = 0x0001,                        /* PPC will deny incoming network requests */
  886.     gestaltPPCSupportsOutGoing    = 0x0002                        /* PPC will deny outgoing network requests */
  887. };
  888.  
  889.  
  890. enum {
  891.     gestaltProcessorType        = 'proc',                        /* processor type */
  892.     gestalt68000                = 1,
  893.     gestalt68010                = 2,
  894.     gestalt68020                = 3,
  895.     gestalt68030                = 4,
  896.     gestalt68040                = 5
  897. };
  898.  
  899.  
  900. enum {
  901.     gestaltParityAttr            = 'prty',                        /* parity attributes */
  902.     gestaltHasParityCapability    = 0,                            /* has ability to check parity */
  903.     gestaltParityEnabled        = 1                                /* parity checking enabled */
  904. };
  905.  
  906.  
  907. enum {
  908.     gestaltQuickdrawVersion        = 'qd  ',                        /* quickdraw version */
  909.     gestaltOriginalQD            = 0x0000,                        /* original 1-bit QD */
  910.     gestalt8BitQD                = 0x0100,                        /* 8-bit color QD */
  911.     gestalt32BitQD                = 0x0200,                        /* 32-bit color QD */
  912.     gestalt32BitQD11            = 0x0201,                        /* 32-bit color QDv1.1 */
  913.     gestalt32BitQD12            = 0x0220,                        /* 32-bit color QDv1.2 */
  914.     gestalt32BitQD13            = 0x0230                        /* 32-bit color QDv1.3 */
  915. };
  916.  
  917.  
  918. enum {
  919.     gestaltQuickdrawFeatures    = 'qdrw',                        /* quickdraw features */
  920.     gestaltHasColor                = 0,                            /* color quickdraw present */
  921.     gestaltHasDeepGWorlds        = 1,                            /* GWorlds can be deeper than 1-bit */
  922.     gestaltHasDirectPixMaps        = 2,                            /* PixMaps can be direct (16 or 32 bit) */
  923.     gestaltHasGrayishTextOr        = 3,                            /* supports text mode grayishTextOr */
  924.     gestaltSupportsMirroring    = 4                                /* Supports video mirroring via the Display Manager. */
  925. };
  926.  
  927.  
  928. enum {
  929.     gestaltQuickTimeVersion        = 'qtim',                        /* returns version of QuickTime */
  930.     gestaltQuickTime            = 'qtim'                        /* gestaltQuickTime is old name for gestaltQuickTimeVersion */
  931. };
  932.  
  933.  
  934. enum {
  935.     gestaltQuickTimeConferencingInfo = 'qtci'                    /* returns pointer to QuickTime Conferencing information */
  936. };
  937.  
  938.  
  939. enum {
  940.     gestaltQuickTimeConferencing = 'mtlk'                        /* returns QuickTime Conferencing version */
  941. };
  942.  
  943.  
  944. enum {
  945.     gestaltQuickTimeFeatures    = 'qtrs',
  946.     gestaltPPCQuickTimeLibPresent = 0                            /* PowerPC QuickTime glue library is present */
  947. };
  948.  
  949.  
  950. enum {
  951.     gestaltPhysicalRAMSize        = 'ram '                        /* physical RAM size */
  952. };
  953.  
  954.  
  955. enum {
  956.     gestaltRBVAddr                = 'rbv '                        /* RBV base address  */
  957. };
  958.  
  959.  
  960. enum {
  961.     gestaltROMSize                = 'rom '                        /* rom size */
  962. };
  963.  
  964.  
  965. enum {
  966.     gestaltROMVersion            = 'romv'                        /* rom version */
  967. };
  968.  
  969.  
  970. enum {
  971.     gestaltResourceMgrAttr        = 'rsrc',                        /* Resource Mgr attributes */
  972.     gestaltPartialRsrcs            = 0                                /* True if partial resources exist */
  973. };
  974.  
  975.  
  976. enum {
  977.     gestaltRealtimeMgrAttr        = 'rtmr',                        /* Realtime manager attributes            */
  978.     gestaltRealtimeMgrPresent    = 0                                /* true if the Realtime manager is present     */
  979. };
  980.  
  981.  
  982. enum {
  983.     gestaltSCCReadAddr            = 'sccr'                        /* scc read base address  */
  984. };
  985.  
  986.  
  987. enum {
  988.     gestaltSCCWriteAddr            = 'sccw'                        /* scc read base address  */
  989. };
  990.  
  991.  
  992. enum {
  993.     gestaltScrapMgrAttr            = 'scra',                        /* Scrap Manager attributes */
  994.     gestaltScrapMgrTranslationAware = 0                            /* True if scrap manager is translation aware */
  995. };
  996.  
  997.  
  998. enum {
  999.     gestaltScriptMgrVersion        = 'scri'                        /* Script Manager version number     */
  1000. };
  1001.  
  1002.  
  1003. enum {
  1004.     gestaltScriptCount            = 'scr#'                        /* number of active script systems   */
  1005. };
  1006.  
  1007.  
  1008. enum {
  1009.     gestaltSCSI                    = 'scsi',                        /* SCSI Manager attributes */
  1010.     gestaltAsyncSCSI            = 0,                            /* Supports Asynchronous SCSI */
  1011.     gestaltAsyncSCSIINROM        = 1,                            /* Async scsi is in ROM (available for booting) */
  1012.     gestaltSCSISlotBoot            = 2                                /* ROM supports Slot-style PRAM for SCSI boots (PDM and later) */
  1013. };
  1014.  
  1015.  
  1016. enum {
  1017.     gestaltControlStripAttr        = 'sdev',                        /* Control Strip attributes */
  1018.     gestaltControlStripExists    = 0,                            /* Control Strip is installed */
  1019.     gestaltControlStripVersionFixed = 1,                        /* Control Strip version Gestalt selector was fixed */
  1020.     gestaltControlStripUserFont    = 2,                            /* supports user-selectable font/size */
  1021.     gestaltControlStripUserHotKey = 3                            /* support user-selectable hot key to show/hide the window */
  1022. };
  1023.  
  1024.  
  1025. enum {
  1026.     gestaltSerialAttr            = 'ser ',                        /* Serial attributes */
  1027.     gestaltHasGPIaToDCDa        = 0,                            /* GPIa connected to DCDa*/
  1028.     gestaltHasGPIaToRTxCa        = 1,                            /* GPIa connected to RTxCa clock input*/
  1029.     gestaltHasGPIbToDCDb        = 2                                /* GPIb connected to DCDb */
  1030. };
  1031.  
  1032.  
  1033. enum {
  1034.     gestaltNuBusConnectors        = 'sltc'                        /* bitmap of NuBus connectors*/
  1035. };
  1036.  
  1037.  
  1038. enum {
  1039.     gestaltSlotAttr                = 'slot',                        /* slot attributes  */
  1040.     gestaltSlotMgrExists        = 0,                            /* true is slot mgr exists  */
  1041.     gestaltNuBusPresent            = 1,                            /* NuBus slots are present  */
  1042.     gestaltSESlotPresent        = 2,                            /* SE PDS slot present  */
  1043.     gestaltSE30SlotPresent        = 3,                            /* SE/30 slot present  */
  1044.     gestaltPortableSlotPresent    = 4                                /* Portable’s slot present  */
  1045. };
  1046.  
  1047.  
  1048. enum {
  1049.     gestaltFirstSlotNumber        = 'slt1'                        /* returns first physical slot */
  1050. };
  1051.  
  1052.  
  1053. enum {
  1054.     gestaltSoundAttr            = 'snd ',                        /* sound attributes */
  1055.     gestaltStereoCapability        = 0,                            /* sound hardware has stereo capability */
  1056.     gestaltStereoMixing            = 1,                            /* stereo mixing on external speaker */
  1057.     gestaltSoundIOMgrPresent    = 3,                            /* The Sound I/O Manager is present */
  1058.     gestaltBuiltInSoundInput    = 4,                            /* built-in Sound Input hardware is present */
  1059.     gestaltHasSoundInputDevice    = 5,                            /* Sound Input device available */
  1060.     gestaltPlayAndRecord        = 6,                            /* built-in hardware can play and record simultaneously */
  1061.     gestalt16BitSoundIO            = 7,                            /* sound hardware can play and record 16-bit samples */
  1062.     gestaltStereoInput            = 8,                            /* sound hardware can record stereo */
  1063.     gestaltLineLevelInput        = 9,                            /* sound input port requires line level */
  1064.                                                                 /* the following bits are not defined prior to Sound Mgr 3.0 */
  1065.     gestaltSndPlayDoubleBuffer    = 10,                            /* SndPlayDoubleBuffer available, set by Sound Mgr 3.0 and later */
  1066.     gestaltMultiChannels        = 11,                            /* multiple channel support, set by Sound Mgr 3.0 and later */
  1067.     gestalt16BitAudioSupport    = 12                            /* 16 bit audio data supported, set by Sound Mgr 3.0 and later */
  1068. };
  1069.  
  1070.  
  1071. enum {
  1072.     gestaltSoftwareVendorCode    = 'srad',                        /* Returns system software vendor information */
  1073.     gestaltSoftwareVendorApple    = 'Appl',                        /* System software sold by Apple */
  1074.     gestaltSoftwareVendorLicensee = 'Lcns'                        /* System software sold by licensee */
  1075. };
  1076.  
  1077.  
  1078. enum {
  1079.     gestaltStandardFileAttr        = 'stdf',                        /* Standard File attributes */
  1080.     gestaltStandardFile58        = 0,                            /* True if selectors 5-8 (StandardPutFile-CustomGetFile) are supported */
  1081.     gestaltStandardFileTranslationAware = 1,                    /* True if standard file is translation manager aware */
  1082.     gestaltStandardFileHasColorIcons = 2,                        /* True if standard file has 16x16 color icons */
  1083.     gestaltStandardFileUseGenericIcons = 3,                        /* Standard file LDEF to use only the system generic icons if true */
  1084.     gestaltStandardFileHasDynamicVolumeAllocation = 4            /* True if standard file supports more than 20 volumes */
  1085. };
  1086.  
  1087.  
  1088. enum {
  1089.     gestaltSysArchitecture        = 'sysa',                        /* Native System Architecture */
  1090.     gestalt68k                    = 1,                            /* Motorola MC68k architecture */
  1091.     gestaltPowerPC                = 2                                /* IBM PowerPC architecture */
  1092. };
  1093.  
  1094.  
  1095. enum {
  1096.     gestaltSystemUpdateVersion    = 'sysu'                        /* System Update version */
  1097. };
  1098.  
  1099.  
  1100. enum {
  1101.     gestaltSystemVersion        = 'sysv'                        /* system version*/
  1102. };
  1103.  
  1104.  
  1105. enum {
  1106.     gestaltTSMgrVersion            = 'tsmv',                        /* Text Services Mgr version, if present */
  1107.     gestaltTSMgr2                = 0x0200
  1108. };
  1109.  
  1110.  
  1111. enum {
  1112.     gestaltTSMgrAttr            = 'tsma',                        /* Text Services Mgr attributes, if present */
  1113.     gestaltTSMDisplayMgrAwareBit = 0,                            /* TSM knows about display manager */
  1114.     gestaltTSMdoesTSMTEBit        = 1                                /* TSM has integrated TSMTE */
  1115. };
  1116.  
  1117.  
  1118. enum {
  1119.     gestaltTSMTEVersion            = 'tmTV',
  1120.     gestaltTSMTE1                = 0x0100,
  1121.     gestaltTSMTE2                = 0x0200
  1122. };
  1123.  
  1124.  
  1125. enum {
  1126.     gestaltTSMTEAttr            = 'tmTE',
  1127.     gestaltTSMTEPresent            = 0,
  1128.     gestaltTSMTE                = 0                                /* gestaltTSMTE is old name for gestaltTSMTEPresent */
  1129. };
  1130.  
  1131.  
  1132. enum {
  1133.     gestaltTextEditVersion        = 'te  ',                        /* TextEdit version number */
  1134.     gestaltTE1                    = 1,                            /* TextEdit in MacIIci ROM */
  1135.     gestaltTE2                    = 2,                            /* TextEdit with 6.0.4 Script Systems on MacIIci (Script bug fixes for MacIIci) */
  1136.     gestaltTE3                    = 3,                            /* TextEdit with 6.0.4 Script Systems all but MacIIci */
  1137.     gestaltTE4                    = 4,                            /* TextEdit in System 7.0 */
  1138.     gestaltTE5                    = 5,                            /* TextWidthHook available in TextEdit */
  1139.     gestaltTE6                    = 6                                /* TextEdit in System 8.0 */
  1140. };
  1141.  
  1142.  
  1143. enum {
  1144.     gestaltTEAttr                = 'teat',                        /* TextEdit attributes */
  1145.     gestaltTEHasGetHiliteRgn    = 0,                            /* TextEdit has TEGetHiliteRgn */
  1146.     gestaltTESupportsInlineInput = 1,                            /* TextEdit does Inline Input */
  1147.     gestaltTESupportsTextObjects = 2                            /* TextEdit does Text Objects */
  1148. };
  1149.  
  1150.  
  1151. enum {
  1152.     gestaltTeleMgrAttr            = 'tele',                        /* Telephone manager attributes */
  1153.     gestaltTeleMgrPresent        = 0,
  1154.     gestaltTeleMgrPowerPCSupport = 1,
  1155.     gestaltTeleMgrSoundStreams    = 2,
  1156.     gestaltTeleMgrAutoAnswer    = 3,
  1157.     gestaltTeleMgrIndHandset    = 4,
  1158.     gestaltTeleMgrSilenceDetect    = 5,
  1159.     gestaltTeleMgrNewTELNewSupport = 6
  1160. };
  1161.  
  1162.  
  1163. enum {
  1164.     gestaltTermMgrAttr            = 'term',                        /* terminal mgr attributes */
  1165.     gestaltTermMgrPresent        = 0,
  1166.     gestaltTermMgrErrorString    = 2
  1167. };
  1168.  
  1169.  
  1170. enum {
  1171.     gestaltTimeMgrVersion        = 'tmgr',                        /* time mgr version */
  1172.     gestaltStandardTimeMgr        = 1,                            /* standard time mgr is present */
  1173.     gestaltRevisedTimeMgr        = 2,                            /* revised time mgr is present */
  1174.     gestaltExtendedTimeMgr        = 3                                /* extended time mgr is present */
  1175. };
  1176.  
  1177.  
  1178. enum {
  1179.     gestaltSpeechAttr            = 'ttsc',                        /* Speech Manager attributes */
  1180.     gestaltSpeechMgrPresent        = 0,                            /* bit set indicates that Speech Manager exists */
  1181.     gestaltSpeechHasPPCGlue        = 1                                /* bit set indicates that native PPC glue for Speech Manager API exists */
  1182. };
  1183.  
  1184.  
  1185. enum {
  1186.     gestaltToolboxTable            = 'tbtt'                        /*  OS trap table base  */
  1187. };
  1188.  
  1189.  
  1190. enum {
  1191.     gestaltThreadMgrAttr        = 'thds',                        /* Thread Manager attributes */
  1192.     gestaltThreadMgrPresent        = 0,                            /* bit true if Thread Mgr is present */
  1193.     gestaltSpecificMatchSupport    = 1,                            /* bit true if Thread Mgr supports exact match creation option */
  1194.     gestaltThreadsLibraryPresent = 2                            /* bit true if Thread Mgr shared library is present */
  1195. };
  1196.  
  1197.  
  1198. enum {
  1199.     gestaltTVAttr                = 'tv  ',                        /* TV version */
  1200.     gestaltHasTVTuner            = 0,                            /* supports Philips FL1236F video tuner */
  1201.     gestaltHasSoundFader        = 1,                            /* supports Philips TEA6330 Sound Fader chip */
  1202.     gestaltHasHWClosedCaptioning = 2,                            /* supports Philips SAA5252 Closed Captioning */
  1203.     gestaltHasIRRemote            = 3,                            /* supports CyclopsII Infra Red Remote control */
  1204.     gestaltHasVidDecoderScaler    = 4,                            /* supports Philips SAA7194 Video Decoder/Scaler */
  1205.     gestaltHasStereoDecoder        = 5,                            /* supports Sony SBX1637A-01 stereo decoder */
  1206.     gestaltHasSerialFader        = 6,                            /* has fader audio in serial with system audio */
  1207.     gestaltHasFMTuner            = 7                                /* has FM Tuner from donnybrook card */
  1208. };
  1209.  
  1210.  
  1211. enum {
  1212.     gestaltVersion                = 'vers',                        /* gestalt version */
  1213.     gestaltValueImplementedVers    = 5                                /* version of gestalt where gestaltValue is implemented. */
  1214. };
  1215.  
  1216.  
  1217. enum {
  1218.     gestaltVIA1Addr                = 'via1'                        /* via 1 base address  */
  1219. };
  1220.  
  1221.  
  1222. enum {
  1223.     gestaltVIA2Addr                = 'via2'                        /* via 2 base address  */
  1224. };
  1225.  
  1226.  
  1227. enum {
  1228.     gestaltVMAttr                = 'vm  ',                        /* virtual memory attributes */
  1229.     gestaltVMPresent            = 0                                /* true if virtual memory is present */
  1230. };
  1231.  
  1232.  
  1233. enum {
  1234.     gestaltTranslationAttr        = 'xlat',                        /* Translation Manager attributes */
  1235.     gestaltTranslationMgrExists    = 0,                            /* True if translation manager exists */
  1236.     gestaltTranslationMgrHintOrder = 1,                            /* True if hint order reversal in effect */
  1237.     gestaltTranslationPPCAvail    = 2,
  1238.     gestaltTranslationGetPathAPIAvail = 3
  1239. };
  1240.  
  1241.  
  1242. enum {
  1243.     gestaltExtToolboxTable        = 'xttt'                        /* Extended Toolbox trap table base */
  1244. };
  1245.  
  1246.  
  1247. #if PRAGMA_ALIGN_SUPPORTED
  1248. #pragma options align=reset
  1249. #endif
  1250.  
  1251. #if PRAGMA_IMPORT_SUPPORTED
  1252. #pragma import off
  1253. #endif
  1254.  
  1255. #ifdef __cplusplus
  1256. }
  1257. #endif
  1258.  
  1259. #endif /* __GESTALT__ */
  1260.  
  1261.